<template>
  <a-row>
    <a-col :xl="24" :lg="24" :md="24" :sm="24" :xs="24">
      <v-charts :options="options"  style="width:100%;height:400px" autoresize />
    </a-col>
  </a-row>
</template>

<script>
import ECharts from 'vue-echarts/components/ECharts'
import 'echarts/lib/chart/bar'
import 'echarts/lib/chart/line'
import 'echarts/lib/component/tooltip'
import 'echarts/lib/component/legend'
import 'echarts/lib/component/polar'
import 'echarts/lib/component/title.js'
import 'echarts/lib/component/markLine'
import { getAction } from '@api/manage'

export default {
  name: 'SchoolResearchPaper',
  components:{
    'v-charts': ECharts
  },
  props: {
    date: {
      type: String,
      default: () => []
    }
  },
  data(){
    return {
      options : {
        tooltip: {
          trigger: 'axis',
          axisPointer: {            // 坐标轴指示器，坐标轴触发有效
            type: 'shadow'        // 默认为直线，可选为：'line' | 'shadow'
          }
        },
        legend: {
          data: ['SCI', 'SSCI、EI', 'ISTP、CA、SA、CBST、ISR', 'A类期刊', 'B类期刊', 'C类期刊', 'D类期刊',  '实用新型专利','发明专利',]
        },
        grid: {
          left: '3%',
          right: '4%',
          bottom: '25%',
          show: true,

        },
        xAxis: [

          {
            axisLabel:{
              interval: 0,
              rotate: 45
            },
            type: 'category',
            data: ['智能制造学院', '人工智能学院', '汽车工程学院', '机械工程学院', '电子信息学院', '计算机与软件学院', '化学工程学院', '建筑与热能工程学院', '经济管理学院', '艺术与设计学院', '基础课部', '马克思主义学院', '军事体育部']
          }
        ],
        yAxis: [
          {
            type: 'value',
            min:0
          }
        ],
        series: [
          {
            name: 'SCI',
            type: 'bar',
            stack: '收录检索',
            emphasis: {
              focus: 'series'
            },
            data: [3, 0, 2, 3, 1, 3, 3, 3, 1, 2, 3, 1, 3]
          },
          {
            name: 'SSCI、EI',
            type: 'bar',
            stack: '收录检索',
            emphasis: {
              focus: 'series'
            },
            data: [12, 0, 10, 13, 9, 15, 10, 13, 10, 13, 9, 15, 10]
          },
          {
            name: 'ISTP、CA、SA、CBST、ISR',
            type: 'bar',
            stack: '收录检索',
            emphasis: {
              focus: 'series'
            },
            data: [20, 0, 19, 23, 21, 33, 31, 18, 19, 23, 21, 33, 31]
          },
          {
            name: 'A类期刊',
            type: 'bar',
            stack: '公开发表',
            emphasis: {
              focus: 'series'
            },
            data: [1, 2, 2, 1, 1, 0, 1, 2, 2, 1, 9, 0, 0]
          },
          {
            name: 'B类期刊',
            type: 'bar',
            stack: '公开发表',
            data: [8, 10, 9, 10, 1, 6, 7, 10, 9, 10, 1, 6, 7],
            emphasis: {
              focus: 'series'
            }
          },
          {
            name: 'C类期刊',
            type: 'bar',

            stack: '公开发表',
            emphasis: {
              focus: 'series'
            },
            data: [20, 32, 1, 34, 10, 11, 20, 32, 1, 34, 10, 11, 20]
          },
          {
            name: 'D类期刊',
            type: 'bar',
            stack: '公开发表',
            emphasis: {
              focus: 'series'
            },
            data: [20, 32, 10, 34, 29, 23, 22, 32, 10, 34, 29, 23, 22]
          },
          {
            name: '发明专利',
            type: 'bar',
            stack: '专利',
            emphasis: {
              focus: 'series'
            },
            data: [6, 2, 0, 4, 9, 3, 1, 2, 0, 4, 9, 3, 1]
          },
          {
            name: '实用新型专利',
            type: 'bar',
            stack: '专利',
            emphasis: {
              focus: 'series'
            },
            data: [62, 82, 91, 84, 109, 110, 120,62, 82, 91, 84, 109, 110]
          }

        ]
      }
    }
  }
}
</script>

<style scoped>

</style>